package ipebg.mzk.facade.system.service;

import ipebg.mzk.facade.entity.MsFunctionOption;
import ipebg.mzk.facade.entity.MsFunctionRoleOption;

import java.util.List;


public interface MsFunctionRoleOptionService {

	/**
	 * 保存MsFunctionRoleOption實體
	 * @param roleOptionBean
	 */
	void saveEntity(MsFunctionRoleOption roleOptionBean) throws Exception;
	
	/**
	 * 刪除實體
	 * @param roleOptionBean
	 * @throws Exception
	 */
	void deleteEntity(String functionId,String roleId) throws Exception;

	/**
	 * 查找實體
	 * @param bean
	 * @return
	 * @throws Exception
	 */
	MsFunctionRoleOption findEntity(MsFunctionOption bean,String roleId) throws Exception;
	
	/**
	 * 通过FunctionId和RoleId獲取获取所有Options
	 * @param userNo
	 * @param functionName
	 * @return
	 * @throws Exception
	 */
	public List<MsFunctionRoleOption> findOptionsByFunctionIdRoleId(String functionId,String roleId) throws Exception;

	/**
	 * 通过传入用户工号以及程序名称（功能项名称）获取所有Options
	 * @param userNo
	 * @param functionName
	 * @return
	 * @throws Exception
	 */
	String returnOptionByUserFunctionName(String userNo,String functionName) throws Exception;
}
